{include file="public/mobileheader"}

<body>
<style>
    .login-center{
        text-align: center;
        margin-top: 2em;
    }
    .mui-btn-block{
        padding: 7px 0;
    }
</style>

<div>
    <form class="login-center">
        <div>
            <span>手机号</span>
            <input type="text" name="mobile" required placeholder="请输入手机号"/>
        </div>

        <div>
            <span>密码</span>
            <input type="password" name="password" required placeholder="请输入密码"/>
        </div>

        <button type="button" id="login" class="mui-btn mui-btn-success mui-btn-block">立即登录</button>

    </form>

</div>


{include file="public/mobilefooter"}
<script>
    layui.use(['form', 'layer'], function () {
        var $ = layui.jquery,form = layui.form(),layer = layui.layer;

        $('#login').click(function() {
            var params  = {
                url : "{:url('login')}",
                data: $('form').serialize(),
                type: 'post',
                sCallback:function(res){
                    if(res.errorCode == 0){
                        location.href = "{:url('index/index')}";
                    }else if(res.errorCode == -1) {
                        dialog.confirm(res.msg,"http://app.ky365.cn/mobile/ss/doReg.do?agentId=2170000512&mobile=18073125288&appId=0000&from=singlemessage");
                    }
                }
            };
            common.request(params);
        });
    })


</script>
</body>

</html>